package com.lsy.mapper.interf;

import com.lsy.entity.User;
import com.lsy.entity.UserExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * Mapper 必须要 继承 MapperInterface
 * 
 * @author Administrator
 *
 */
public interface UserMapper extends MapperInterface<User> {
	int countByExample(UserExample example);

	int deleteByExample(UserExample example);

	int deleteByPrimaryKey(Integer userid);

	int insert(User record);

	int insertSelective(User record);

	List<User> selectByExample(UserExample example);

	User selectByPrimaryKey(Integer userid);

	int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);

	int updateByExample(@Param("record") User record, @Param("example") UserExample example);

	int updateByPrimaryKeySelective(User record);

	int updateByPrimaryKey(User record);

	/**
	 * 通过电话号码查找
	 * 
	 * @param phone
	 *            电话号码
	 * @return User对象
	 */
	User selectByPhone(String phone);
}